package demo4;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2024-02-13
 * Time: 21:52
 */
public class Cat extends Animal{
    public Cat() {
    }

    public Cat(int age, String color) {
        super(age, color);
    }

    @Override
    public void eat(String someting) {
        System.out.println(getAge()+"岁的"+getColor()+"颜色的猫咪着演讲侧着头吃"+someting);
    }

    public void catchMouse(){
        System.out.println("猫抓老鼠");
    }
}
